module site {
    export function siteEquals(data1: ISiteUnitData, data2: ISiteUnitData): boolean {
        return data1.roleId === data2.roleId &&
            data1.mapId === data2.mapId &&
            data1.x === data2.x &&
            data1.y === data2.y &&
            data1.delta === data2.delta;
    }

    /**
     * 玩家坐标
     */
    export class SiteUnitData implements ISiteUnitData {

        constructor(roleId: number) {
            this.roleId = roleId;
        }

        // 角色id
        roleId: number;
        // 地图id
        mapId: number;
        // 坐标x
        x: number;
        // 坐标y
        y: number;
        // 旋转角
        delta: number;
    }
}